<template>
	<view>
		<dsl-navbar title="文章详情" isBack bgTopImg="white" titleRight="更多" @rightForm='rightForm'></dsl-navbar>
		<view class="title">
			{{articleData.title}}
		</view>
		<view class="padding text-sm text-gray">
			<text class="">{{articleData.createtime}}</text>
		</view>
	<!-- 	<view class="notice_bottom solid-top">
			<view class="margin-left">10人未读</view>
			<view class="margin-left">30人已读</view>
		</view> -->
		<view class="padding">
			<view v-html="articleData.content"></view>
		</view>
	</view>
</template>

<script>
	import {
		getarticleDetail
	} from '@/common/path.js'
	export default {
		data() {
			return {
				articleData:''
			}
		},
		//生命周期函数
		onReady() {},
		onLoad(option) {
			this.detailId = option.id
			this.getarticleDetail()
		},
		onShow() {},
		methods: {
			//跳转更多
			rightForm(){
				uni.reLaunch({
					url:'/pages/workbench/modules/videoList'
				})
			},
			
			//文章详情
			getarticleDetail() {
				let data = {
					id: this.detailId
				}
				this.Http.POST(getarticleDetail, data)
					.then((res) => {
						console.log('[文章]',res);
						if (res.code == 1) {
							this.articleData = res.data
						}
					})
			}
		},
		computed: {},
		components: {}
	}
</script>

<style>
	.title {
		font-size: 36rpx;
		font-family: PingFang SC;
		font-weight: bold;
		color: #333333;
		padding: 30rpx;
		padding-bottom: 1rpx;
	}

	.notice_bottom {
		width: 750rpx;
		height: 98rpx;
		background: #FFFFFF;
		line-height: 98rpx;
		font-size: 24rpx;
		font-family: PingFang SC;
		font-weight: 400;
		color: #999999;
		opacity: 1;
		display: flex;
		align-items: center;
		position: fixed;
		bottom: 0;

	}
</style>
